package com.dotto.atos.models;

import java.text.SimpleDateFormat;
import java.util.Date;

import android.annotation.SuppressLint;

public class Refusal {

	public String subject;
	public String from;
	public String to;
	public String message;
	public Date date;

	@SuppressLint("SimpleDateFormat")
	public String getMessage() {
		SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy");
		String msg = "";
		if (getDate() != null) {
			msg = format.format(getDate());
		}
		msg = msg + " " + message;
		return msg;
	}

	public Date getDate() {
		if (date == null)
			date = new Date();
		return date;
	}

}
